package com.ems.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ems.vo.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 菜单权限表
 * </p>
 * @author WuZH
 * @since 2023-10-24
 */
@Data
@TableName ("menu_info")
@ApiModel (value = "MenuEntity对象", description = "菜单权限表")
public class MenuEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("菜单名")
    @TableField ("menuName")
    private String menuName;

    @ApiModelProperty ("菜单请求url")
    @TableField ("url")
    private String url;

    @ApiModelProperty ("菜单前面图标")
    @TableField ("menuClass")
    private String menuClass;

    @ApiModelProperty ("菜单与按钮")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("菜单的排序")
    @TableField ("sort")
    private Integer sort;

    @ApiModelProperty ("对于菜单的描述")
    @TableField ("note")
    private String note;

    @ApiModelProperty ("页面的按钮是二级菜单，它的父是左侧栏一级菜单")
    @TableField ("parentId")
    private String parentId;

    @ApiModelProperty ("菜单能够被哪些权限所点击，用在二级菜单")
    @TableField ("permission")
    private String permission;

    @TableField ("createTime")
    private Date createTime;

    @TableField ("changeTime")
    private Date changeTime;

    @TableField ("isUsed")
    private Integer isUsed;


}
